<div class="modal fade" id="modal_modify" style="padding-top: 150px" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    角色列表
                </h4>
            </div>
            <div class="modal-body">
                <form id="form_modify" class="form-horizontal" role="form">
                    <div class="form-group hidden">
                        <label for="firstname" class="col-sm-2 control-label">ID</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="queryId" name="userId" value="" >
                        </div>
                    </div>
                    <div class="form-group">
                        <table class="table  table-hover">
                            <thead>
                            <tr>
                                <th>
                                    <input type="checkbox" id="checkRolesAll" value="" onchange="selectAllBox(this)">全选
                                </th>
                                <th>角色名</th>
                                <th>角色描述</th>
                            </tr>
                            </thead>
                            <tbody id="tbody_allot_role">

                            <#list listResult.list as sysRole>
                            <tr>
                                <td>
                                    <#if sysRole.checkFlag=1>
                                        <input id="checkbox_${sysRole_index}" type="checkbox" checked="checked" value="${sysRole.id?default("")}"></td>
                                    <#else>
                                        <input id="checkbox_${sysRole_index}" type="checkbox"  value="${sysRole.id?default("")}">
                                    </#if>
                                </td>
                                <td>${sysRole.roleName?default("")}</td>
                                <td>${sysRole.description?default("")}</td>
                            </tr>
                            </#list>

                            </tbody>
                        </table>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" id="modalCancel" onclick="function close() {
                            $('#modal_modify').modal('hide');
                        }" class="btn btn-default" data-dismiss="modal">取消
                </button>
                <button type="button" id="button_modify" onclick="modifyRecord()" class="btn btn-primary">
                    保存
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>